package com.cheer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheer.entity.ActivityEntity;
import com.cheer.entity.OaActivityPartiEntity;
import com.cheer.entity.OaUserEntity;
import com.cheer.param.ActivityCheckinParam;

public interface ActivityPartiService extends IService<OaActivityPartiEntity> {

    /**
     * 获取报名人数
     * @param userId
     * @return
     */
    Integer getApplyNum(Integer actId);

    /**
     * 当前用户
     * @param id
     * @param userId
     * @return
     */
    Boolean getIsRegistered(Integer id, Integer userId);

    /**
     * 是否签到
     * @param id
     * @param userId
     * @return
     */
    Boolean getIsCheckin(Integer id, Integer userId);

    /**
     * 报名
     * @param actId
     * @param userId
     */
    void registration(Integer actId, Integer userId, OaUserEntity user);

    /**
     * 签到
     * @param activityCheckinParam
     * @param userId
     */
    void checkin(ActivityCheckinParam activityCheckinParam, Integer userId, ActivityEntity act);

}
